using System;
using System.ComponentModel.DataAnnotations;

namespace ERP.Domain.Warehouse.Allocation
{
	/// <summary>
	/// 调拨出库记录（支持多次部分出库）
	/// </summary>
	public class TransferOutRecord
	{
		[Key]
		public int Id { get; set; }

		public int TransferId { get; set; }
		public int LineId { get; set; }
		public int ProductId { get; set; }
		public int WarehouseId { get; set; }
		public int? LocationId { get; set; }

		public decimal Qty { get; set; }
		public decimal UnitPrice { get; set; }
		public decimal Amount { get; set; }

		[StringLength(64)]
		public string OperatorName { get; set; }
		public DateTime OperatedAt { get; set; } = DateTime.Now;

		[StringLength(256)]
		public string Remark { get; set; }
	}
}

